Repository navigation
Runnable spec discovery - #42
Closed
KalanaRatnayake wants to merge 24 commits into
Closed
KalanaRatnayake wants to merge 24 commits into
KalanaRatnayake wants to merge 24 commits into
Conversation
…tiplexRunner to spec 1.2
…antic names when semantic specs are built
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change updates runnable-spec discovery so it returns invokable interface/provider pairs rather than only raw provider-backed specs.
Previously,
get_runnable_specscopied provider definitions directly and keyed results by provider name. That worked for direct runtime execution, but it broke prompt-driven plan generation for semantic interfaces such asturtlebot_capabilities/TurtlebotWaypointRunner, because the prompted runnable-spec list did not expose the resolved command shape that runtime actually accepts.This PR makes runnable-spec discovery follow the same semantic-interface resolution path already used at runtime. For semantic interface plus provider pairs, the emitted runnable spec now:
definition.commandto advertise the resolved semantic interface nameinterface_name|provider_namekey so one provider can expose multiple invokable runnable specsAs a result, prompt-based generation now sees runnable specs like:
which matches the form already accepted by runtime execution.
Fixes #[issue]
Type of change
How Has This Been Tested?
Tested locally in the ROS 2 workspace on Ubuntu.
Commands and validation performed:
source install/setup.bash ros2 launch turtlebot_capabilities system.launch.py filename:=turtlebot_5.xmlVerified outcomes:
capabilities2_serverbuilds successfullyChecklist